Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Observability] Serverless navigation #157139

Closed

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented May 9, 2023

Related to: #153777

This adds the boilerplate necessary for rendering the serverless nav:

  • Uses the basic styles defined by Core (dark sideNav has been dropped).
  • Consumes the setSideNavComponent API from the Serverless plugin.

Run this locally:

 yarn start --serverless=oblt

image

@elastic/apm-ui

@sorenlouv sorenlouv requested a review from a team as a code owner May 9, 2023 09:02
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@sorenlouv sorenlouv added Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v8.9.0 release_note:skip Skip the PR/issue when compiling release notes labels May 9, 2023
@kibana-ci
Copy link
Collaborator

💔 Build Failed

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
serverlessObservability 4 46 +42

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff errors
serverlessObservability 1.5KB 22.4KB +20.9KB ❌ 6.2KB over limit
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 399 403 +4
total +6

miscellaneous assets size

id before after diff
serverlessObservability 0.0B 68.4KB +68.4KB

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 479 483 +4
total +6

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@sorenlouv sorenlouv force-pushed the observability-serverless-nav branch from cc4f422 to 2ffac4f Compare May 9, 2023 10:42
@sorenlouv sorenlouv requested a review from a team as a code owner May 9, 2023 11:23
@@ -8,6 +8,9 @@ xpack.securitySolution.enabled: false
## Enable the Serverless Obsersability plugin
xpack.serverless.observability.enabled: true

# Onboarding
xpack.observability_onboarding.ui.enabled: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ogupte @yngrdyn Any objections with enabling obs onboarding by default on serverless?

Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

limits.yml

@sorenlouv sorenlouv changed the title [Observability] Serverless navigation (WIP) [Observability] Serverless navigation May 9, 2023
return <KibanaContextProvider services={services}>{children}</KibanaContextProvider>;
};

export const useKibana = () => useKibanaReact<Services>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this being used anywhere?

} from '@kbn/kibana-react-plugin/public';
import type { ServerlessObservabilityPluginStartDependencies } from './types';

export type Services = CoreStart & ServerlessObservabilityPluginStartDependencies;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the type doesn't seem to be used in another file

@@ -116,7 +116,7 @@ pageLoadAssetSize:
security: 65433
securitySolution: 66738
serverless: 16573
serverlessObservability: 16582
serverlessObservability: 30000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where did this limit come from?

Copy link
Contributor

@kpatticha kpatticha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

## Configure plugins
xpack.infra.logs.app_target: discover

## Set the home route
uiSettings.overrides.defaultRoute: /app/observability/overview
uiSettings.overrides.defaultRoute: /app/observabilityOnboarding
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yngrdyn @ogupte I've made the observability onboarding the landing page on serverless

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
serverlessObservability 4 46 +42

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
serverlessObservability 1.5KB 22.5KB +21.0KB
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 399 403 +4
total +6

miscellaneous assets size

id before after diff
serverlessObservability 0.0B 68.4KB +68.4KB

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 479 483 +4
total +6

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kpatticha
Copy link
Contributor

I'm closing this PR as I'm working on it here: #157360

@kpatticha kpatticha closed this May 11, 2023
@sorenlouv sorenlouv deleted the observability-serverless-nav branch May 11, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants